package com.qf.controller;

import com.qf.pojo.resp.BaseResp;
import com.qf.service.XcCityService;
import com.qf.service.XcJqCityService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 查询城市
 * @author WYD
 * @date 2021/10/25  20:36
 */
@Api(value = "查询城市",tags = "查询城市")
@RequestMapping("/city")
@RestController
public class XcCityController {

    @Autowired
    XcJqCityService xcCityService;

    /**
     * 查询城市
     * @return
     */
    @ApiOperation("查询城市")
    @RequestMapping(value = "/findAll",method = RequestMethod.GET)
    public BaseResp findAll(){
        return xcCityService.findAll();
    }


}
